<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>3d转换_空间位移</title>
    <style>
        .box {
            width: 200px;
            height: 200px;
            margin: 100px auto;
            background-color: pink;
            transition: all .3s;
        }

        .box:hover {
            /* 使用3d效果看到z轴没什么变化？
            z轴是实现方向，移动效果距离应该是远近*/
            transform: translateX(300px);
        }
    </style>
</head>

<body>
    <div class="box">
    </div>


</body>

</html>